package com.mx.zb.mng.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.mx.zb.mng.bo.Role;
import com.mx.zb.mng.utils.db2.Page;

@Mapper
public interface RoleMapper {
    int deleteByPrimaryKey(String id);

    int insert(Role record);

    int insertSelective(Role record);

    Role selectByPrimaryKey(String id);
    
    Role selectByName(@Param(value="agentId")String agentId,@Param(value="name")String name);
    Role selectByName1(@Param(value="id")String id,@Param(value="agentId")String agentId,@Param(value="name")String name);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);
    
    List<Role> findAllByAgent(String agentid);
    
    Page<Role> queryPage(Role record);
}